package nrrg.zhujuxing.application.learnscala

object lazyLoad {
  def main(args: Array[String]): Unit = {
    lazy val result: Int = sum(1, 2)

    println("1. 函数调用")
    println("2.result = " + result)


    def sum(a: Int, b: Int): Int = {
      println("3. sum调用")
      a + b
    }

  }

}
